<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>客户资源管理</title>
    <%@include file="/WEB-INF/jsp/together/head.jsp"%>
</head>
<body>
<div class="container">
    <div class="panel panel-default text-center">
        <div class="panel-body">
            <form class="form-inline">
                <div class="row">
                    <div class="col-md-6">
                        <label for="">客户姓名:</label>
                        <input type="text" name="customName" >
                        <label for="">分配状态:</label>
                        <select>
                            <option>不限</option>
                            <option>已分配</option>
                            <option>未分配</option>
                        </select>
                        <button type="button" class="btn btn-primary" onclick="search()">查询</button>
                    </div>
                    <div class="col-md-6" id="toolbar">
                        <button class="btn btn-primary" type="button" onclick="prepareAdd()">添加客户信息</button>
                        <button class="btn btn-primary" type="button" onclick="prepareUpdate()">修改客户信息</button>
                        <button class="btn btn-primary" type="button" onclick="del()">删除客户信息</button>
                        <button class="btn btn-primary" type="button" onclick="sMgn()">查看客户信息</button>
                    </div>
                </div>

            </form>
        </div>
    </div>
    <h4>角色信息列表</h4>
    <table id="Ztable"
           data-toggle="table"
           data-url="search1"
           data-striped="true"
           data-toolbar="toolbar"
    >
        <thead>
        <tr>
            <th data-radio="true"></th>
            <th data-field="customName">客户姓名</th>
            <th data-field="gender">性别</th>
            <th data-field="custType" var="" data-formatter="custTypeFmt">客户类型</th>
            <th data-field="state" data-formatter="stateFmt">状态</th>
            <th data-field="distrState" data-formatter="distrStateFmt">分配状态</th>
            <th data-field="entryTime">录入时间</th>
            <th data-field="inputPerson">录入人</th>
        </tr>
        </thead>
    </table>


    <div id="add">
        <form class="form-horizontal">
            <p><input type="hidden" name="id" class="form-control"/></p>
            <div class="row">
                <div class="col-md-4">
                    <p><label class="font-weight">客户编码：</label>
                        <input type="text" name="customId" /></p>
                    <p><label class="font-weight">客户性别：</label>
                        <input type="text" name="gender"  /></p>
                    <p><label class="font-weight">客户类型：</label>
                        <select name="cust_type" >
                            <option value="1">普通客户</option>
                            <option value="2">银卡客户</option>
                            <option value="3">金卡客户</option>
                            <option value="4">VIP客户</option></select></p>
                    <p><label class="font-weight">联系电话：</label>
                        <input type="text" name="phone" /></p>
                </div>
                <div class="col-md-4">
                    <p><label class="font-weight">客户姓名：</label>
                        <input type="text" name="customName"  /></p>
                    <p><label class="font-weight">客户生日：</label>
                        <input type="text" name="birthday"  /></p>
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label class="font-weight">状态：</label>
                        <select name="state">
                            <option value="1">启用</option>
                            <option value="2">禁用</option>
                            <option value="3">流失</option></select></p>
                    <p><label class="font-weight">电子邮箱：</label>
                        <input type="text" name="email"  /></p>
                </div>
            </div>
            <div>
                <p><label class="font-weight">联系地址：</label>
                    <textarea cols="60" rows="3" name="address" style="overflow: hidden;"></textarea></p>
                <p><label class="font-weight">备注信息：</label>
                    <textarea cols="60" rows="3" name="remarks" style="overflow: hidden;"></textarea></p>
            </div>
        </form>
    </div>



    <div id="update">
        <form class="form-horizontal">
            <p><input type="hidden" name="id" class="form-control"/></p>
            <div class="row">
                <div class="col-md-5">
                    <p><label class="font-weight">客户编码：</label>
                        <input type="text" name="customId" disabled="disabled" /></p>
                    <p><label class="font-weight">客户性别：</label>
                        <input type="text" name="gender"  /></p>
                    <p><label class="font-weight">客户类型：</label>
                        <select name="cust_type">
                            <option value="1">普通客户</option>
                            <option value="2">银卡客户</option>
                            <option value="3">金卡客户</option>
                            <option value="4">VIP客户</option></select></p>
                    <p><label class="font-weight">联系电话：</label>
                        <input type="text" name="phone"  /></p>
                </div>
                <div class="col-md-5">
                    <p><label class="font-weight">客户姓名：</label>
                        <input type="text" name="customName"  /></p>
                    <p><label class="font-weight">客户生日：</label>
                        <input type="text" name="birthday"  /></p>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label class="font-weight">状态：</label>
                        <select name="state">
                            <option value="1">启用</option>
                            <option value="2">禁用</option>
                            <option value="3">流失</option></select></p>
                    <p><label class="font-weight">电子邮箱：</label>
                        <input type="text" name="email"  /></p>
                </div>
            </div>
            <div>
                <p><label class="font-weight">联系地址：</label>
                    <textarea cols="60" rows="3" name="address"  style="overflow: hidden;"></textarea></p>
                <p><label class="font-weight">备注信息：</label>
                    <textarea cols="60" rows="3" name="remarks" style="overflow: hidden;"></textarea></p>
            </div>
        </form>
    </div>




    <div id="showInfo">
        <form class="form-horizontal">
            <p>
                <input type="hidden" name="id" class="form-control"/>
            </p>
            <div class="row">
                <div class="col-md-6">
                    <p><label class="font-weight">客户性别：</label>
                        <input type="text" name="gender" disabled="disabled" /></p>
                    <p><label class="font-weight">客户类型：</label>
                        <input type="text" name="cust_type" data-formatter="custTypeFmt" disabled="disabled" /></p>
                    <p><label class="font-weight">联系电话：</label>
                        <input type="text" name="phone"  disabled="disabled" /></p>
                    <p><label class="font-weight">电子邮箱：</label>
                        <input type="text" name="email" disabled="disabled" /></p>
                </div>
                <div class="col-md-6">
                    <p><label class="font-weight">客户姓名：</label>
                        <input type="text" name="customName" disabled="disabled" /></p>
                    <p><label class="font-weight">客户生日：</label><input type="text" name="birthday" disabled="disabled" />
                    </p>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label class="font-weight" data-formatter="stateFmt">状态：</label>
                        <input type="text" name="state" disabled="disabled" /></p>
                </div>
            </div>
            <div><p><label class="font-weight">联系地址：</label>
                    <textarea cols="60" rows="3" name="address" disabled="disabled" style="overflow: hidden;"></textarea></p>
                <p><label class="font-weight">备注信息：</label>
                    <textarea cols="60" rows="3" name="remarks"disabled="disabled" style="overflow: hidden;"></textarea></p>
            </div>
        </form>
    </div>


</div>
</div>
    <%@include file="/WEB-INF/jsp/together/foot.jsp"%>
    <script src="/static/js/RoleMgn.js"></script>
</body>
</html>
